import 'package:flutter/material.dart';

class AppColors {

  /// ff 30 30 30 -> alpha R G B
  static const AppBarColor = 0xff303030;
  /// tabBar normal下的颜色
  static const TabIconNormal = 0xff999999;
  /// tabBar 高亮下的颜色
  static const TabIconActive = 0xff46c11b;
  /// 首页弹框文字颜色
  static const AppBarPopupMenuTextColor = 0xffffffff;
  /// 对话框标题文字颜色
  static const ConversationTitleTextColor = 0xff353535;
  /// 对话框描述文字颜色
  static const ConversationDesTextColor = 0xff9e9e9e;
  /// 对话框item的背景颜色
  static const ConversationItemBgColor = 0xffffffff;
  /// 分割线颜色
  static const ConversationDividerColor = 0xffd9d9d9;
  /// 未读消息角标背景颜色
  static const ConversationNotifyDotBgColor = 0xffff3e3e;
  /// 未读消息角标文字颜色
  static const ConversationNotifyDotTextColor = 0xffffffff;
  /// 会话图片颜色
  static const ConversationMuteIcon = 0xffd8d8d8;
  /// 设备登录端背景颜色
  static const DeviceInfoItemBgColor = 0xfff5f5f5;
  /// 设备登录端文字颜色
  static const DeviceInfoItemTextColor = 0xff606062;
  /// 设置登录图片颜色
  static const DeviceInfoItemIconColor = 0xff606062;
}


class AppStyle {
  /// 会话标题样式
  static const TitleStyle = TextStyle(
    fontSize: 14.0,
    color: Color(AppColors.ConversationTitleTextColor),
  );

  /// 会话描述样式
  static const DesStyle = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.ConversationDesTextColor),
  );

  /// 未读消息文字样式
  static const UnreadMsgCountDotStyle = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.ConversationNotifyDotTextColor),
  );

  /// 登录设备字体样式
  static const DeviceInfoItemTextStyle = TextStyle(
    fontSize: 13.0,
    color: Color(AppColors.DeviceInfoItemTextColor),
  );
}


class Constants {

  /// 字体图片
  static const IconFontFamily = "appIconFont";
  /// 会话头像尺寸
  static const ConversationAvatarSize = 48.0;
  /// 会话分割线高度
  static const ConversationDividerWidth = 1.0;
  /// 会话未读消息背景宽高
  static const ConversationUnReadMsgNotifyDotSize = 20.0;
  /// 会话消息勿扰图片的尺寸
  static const ConversationMuteIconSize = 18.0;
  /// 设备登录端尺寸
  static const DeviceInfoItemHeight = 32.0;

}